package nineteen;

/**
 * 从enum实例中进行随即选择测试
 *
 * @author sun.ye
 * @since 2020-05-02 08:50
 */
public class RandomTest {

    public static void main(String[] args) {
        for (int i = 0; i < 20 ; i++) {
            System.out.println(Enums.random(Activity.class));
        }
    }
}


enum Activity{
    SITTING,LYING,STANDING,HOPPING,RUNNING,DODGING,JUMPING,FALLING,FLYING
}